#pwd
#  /pubx/8cc-malloc-analyze
#lldb   --source  8cc-lldb-py/malloc_print.ls  --   /pubx/8cc/8cc -c  mini_main.c

# run
#先运行一次完整的



# script lldb.debugger.SetAsync(False)

breakpoint set --name __GI___libc_malloc --condition 'bytes > 128'

breakpoint command add --script-type command 1

	expr (int) printf ("alloc_mem_size:%d, ",bytes)
	script import time; st=time.time(); print("curentTime:%f" % st)

	script lldb.thread.StepOut()
	# finish

	script lldb.process.Continue()
	# continue

	#lldb和gdb问题现象一样:   Continue无效，Contine后依然停了，原因估计是 StepOut 是在加了个新断点, 而Continue清除的是1号断点
DONE


run

# quit